<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class RecruitCustomerPhone extends Validate
{
    protected $rule = ['customer_id' => 'require|number','status' => 'require|number','phone_note' => 'require',
    ];

    protected $message = ['customer_id.require' => '家长id为必填项','customer_id.number' => '家长id需为数字','status.require' => '1=未成功,2=成功为必填项','status.number' => '1=未成功,2=成功需为数字','phone_note.require' => '备注为必填项',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['customer_id','status','phone_note',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['customer_id','status','phone_note',]);
    }
}
